﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using BiocityFilmquizAdmin.Src.DatabaseAccess;

namespace BiocityFilmquizAdmin.Src.Domain
{
    /// <summary>
    /// Summary description for User
    /// </summary>
    public class User
    {
        public int userID { get; set; }
        public String name { get; set; }
        public String email { get; set; }
        public bool[] questions { get; set; }
        public bool admin { get; set; }

        public User()
        {
            questions = new bool[Statics.getInstance().getNumberOfQuestions()];
        }

        public User(bool createArray)
        {
            
        }

        public void setQuestionTrue(int question)
        {
            questions[question - 1] = true;
            QuizHelper.getInstance().setCorrectAnswer(question, userID);
        }

        public void setQuestionTrueArray(int question)
        {
            questions[question - 1] = true;
        }

    }
}